<!--
 * @Author: DeluxePig
 * @LastEditors: zhayang 1063975710@qq.com
 * @Date: 2024-06-16 13:52:40
 * @LastEditTime: 2024-06-18 22:33:08
 * @Description: 我的关注——搜索条件
-->

<template>
  <div class="contral-box">
    <div class="contral-list">
      <input v-model="searchVal" class="z-input" placeholder="请输入姓名/手机号/单位名称" type="text" />
      <span class="iconfont icon-sousuo"></span>
    </div>
    <el-button :class="'search-btn'" type="primary" @click="searchFun()">
      查询
    </el-button>
  </div>
</template>

<script>
// import { getInfo, editUserInfo } from '@/api/user'

export default {
  components: {},
  data() {
    return {
      searchVal: ''
    }
  },
  created() { },
  methods: {
    searchFun() {
      this.$emit('searchFun', this.searchVal)
    }
  }
}
</script>
<style lang="scss" scoped>
.contral-box {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;

  .contral-list {
    width: 300px;
    height: 32px;
    background: #ffffff;
    border-radius: 3px;
    border: 1px solid #dcdcdc;
    position: relative;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.4);
    padding-right: 36px;

    .z-input {
      width: 100%;
      height: 100%;
      font-size: 14px;
      color: rgba(0, 0, 0, 0.4);
      border: 0;
      overflow: unset;
      padding-left: 7px;
      outline: none;
    }

    .iconfont {
      position: absolute;
      right: 5px;
      top: 5px;
      color: #797979;
    }
  }

  .search-btn {
    padding: 7px 17px;
    margin-left: 12px;
  }

  .search-btn:hover {
    background: rgba(97, 225, 209, 0.7);
  }
}
</style>
